export type statusType = "all" | "not_start" | "ing" | "complete" | "normal" | "postpone_not_start" | "not_complete";

export type TodoListParams = {
  current: number;
  size: number;
  orderByColumn: number;
  isAsc: "desc" | "asc";
  status: statusType;
  startDate: string;
  endDate: string;
};

export type TodoTypeNumberParams = {
  status: statusType;
  startDate: string;
  endDate: string;
  isMy: boolean;
};

export type numbersType = {
  allNumber: number;
  notStartNumber: number;
  ingNumber: number;
  completedNumber: number;
  normalNumber: number;
  postponeNotStartNumber: number;
  notCompleteNumber: number;
  auditNumber: number;
  failNumber: number;
};

/**
 * 调整计划
 */
export type TaskApplyDelayParams = {
  type: number;
  delayDays: number | string;
  planTime: string;
  delayReason: string;
};

/**
 * 获取调整后的时间
 */
export type TaskApplyDelayResultParams = {
  days: number;
  type: number;
};

export type TaskCrmCompleteParams = {
  deptId: string;
  formData: string;
  processUsers: string;
};
export type CrmFileList = {
  url: string;
};
export type AddTaskParams = {
  commTaskId: string;
  customerId: string;
  trackType: string;
  trackDatetime: string;
  contentDesc: string;
  isNextSetting: string | number;
  nextDateTine: string;
  nextContent: string;
  nextTime: string;
  stageTaskId: string;
  // nextUserIdsList: string[];
  crmFileCreateVOList: CrmFileList[];
};

/**
 * 待办获取指派时间的下个任务 data
 */
export type ToDoNextTaskRes = {
  stageTaskId: number | null;
  taskName: string | null;
  status: number | null;
  plainStartDate: string | null;
};
